#! /usr/bin/env python
#coding=GBK
import time
import t_const
import iworld2d
import t_itemlist

t_const.PL_POWERMAX

class tgame_monster(object):
	def __init__(self):
		self.maptype = t_const.IMAP_MONSTER
		
		self.speed = 150
		self.attack = 10
		self.hp = 30
		self.defense = 10
		pass
	
	def on_hurt(self, power):
		self.hp = self.hp - power
		if self.hp <= 0:
			print "I'm death!"
			return True
		return False
	